package user

import (
	. "go-server/handler"

	"github.com/gin-gonic/gin"
)

func List(c *gin.Context) {

	list := []UserInfo{
		UserInfo{Username: "coco", Password: "111"},
		UserInfo{Username: "jeck", Password: "111"},
	}

	SendResponse(c, nil, list)

}

func Find(c *gin.Context) {
	user := UserInfo{
		Username: c.Param("username"),
		Password: "111",
	}

	SendResponse(c, nil, user)
}
